3.47 \(\int \frac{\cos ^2(e+f x)}{\sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}} \, dx\)

Optimal. Leaf size=43 \[ -\frac{\cos (e+f x) \sqrt{c-c \sin (e+f x)}}{c f \sqrt{a \sin (e+f x)+a}} \]

[Out]

-((Cos[e + f*x]*Sqrt[c - c*Sin[e + f*x]])/(c*f*Sqrt[a + a*Sin[e + f*x]]))

________________________________________________________________________________________

Rubi [A]  time = 0.288419, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.053, Rules used = {2841, 2738} \[ -\frac{\cos (e+f x) \sqrt{c-c \sin (e+f x)}}{c f \sqrt{a \sin (e+f x)+a}} \]

Antiderivative was successfully verified.

[In]

Int[Cos[e + f*x]^2/(Sqrt[a + a*Sin[e + f*x]]*Sqrt[c - c*Sin[e + f*x]]),x]

[Out]

-((Cos[e + f*x]*Sqrt[c - c*Sin[e + f*x]])/(c*f*Sqrt[a + a*Sin[e + f*x]]))

Rule 2841

Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_) + (d_.)*sin[(e_.) + (f_.)*
(x_)])^(n_.), x_Symbol] :> Dist[1/(a^(p/2)*c^(p/2)), Int[(a + b*Sin[e + f*x])^(m + p/2)*(c + d*Sin[e + f*x])^(
n + p/2), x], x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[p
/2]

Rule 2738

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[
(-2*b*Cos[e + f*x]*(c + d*Sin[e + f*x])^n)/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]]), x] /; FreeQ[{a, b, c, d, e,
 f, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[n, -2^(-1)]

Rubi steps

\begin{align*} \int \frac{\cos ^2(e+f x)}{\sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}} \, dx &=\frac{\int \sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)} \, dx}{a c}\\ &=-\frac{\cos (e+f x) \sqrt{c-c \sin (e+f x)}}{c f \sqrt{a+a \sin (e+f x)}}\\ \end{align*}

Mathematica [A]  time = 0.296315, size = 44, normalized size = 1.02 \[ \frac{\sin (2 (e+f x))}{2 f \sqrt{a (\sin (e+f x)+1)} \sqrt{c-c \sin (e+f x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[e + f*x]^2/(Sqrt[a + a*Sin[e + f*x]]*Sqrt[c - c*Sin[e + f*x]]),x]

[Out]

Sin[2*(e + f*x)]/(2*f*Sqrt[a*(1 + Sin[e + f*x])]*Sqrt[c - c*Sin[e + f*x]])

________________________________________________________________________________________

Maple [A]  time = 0.21, size = 42, normalized size = 1. \begin{align*}{\frac{\sin \left ( fx+e \right ) \cos \left ( fx+e \right ) }{f}{\frac{1}{\sqrt{a \left ( 1+\sin \left ( fx+e \right ) \right ) }}}{\frac{1}{\sqrt{-c \left ( -1+\sin \left ( fx+e \right ) \right ) }}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(f*x+e)^2/(a+a*sin(f*x+e))^(1/2)/(c-c*sin(f*x+e))^(1/2),x)

[Out]

1/f*cos(f*x+e)*sin(f*x+e)/(a*(1+sin(f*x+e)))^(1/2)/(-c*(-1+sin(f*x+e)))^(1/2)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (f x + e\right )^{2}}{\sqrt{a \sin \left (f x + e\right ) + a} \sqrt{-c \sin \left (f x + e\right ) + c}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^2/(a+a*sin(f*x+e))^(1/2)/(c-c*sin(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate(cos(f*x + e)^2/(sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c)), x)

________________________________________________________________________________________

Fricas [A]  time = 1.66291, size = 116, normalized size = 2.7 \begin{align*} \frac{\sqrt{a \sin \left (f x + e\right ) + a} \sqrt{-c \sin \left (f x + e\right ) + c} \sin \left (f x + e\right )}{a c f \cos \left (f x + e\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^2/(a+a*sin(f*x+e))^(1/2)/(c-c*sin(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c)*sin(f*x + e)/(a*c*f*cos(f*x + e))

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos ^{2}{\left (e + f x \right )}}{\sqrt{a \left (\sin{\left (e + f x \right )} + 1\right )} \sqrt{- c \left (\sin{\left (e + f x \right )} - 1\right )}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)**2/(a+a*sin(f*x+e))**(1/2)/(c-c*sin(f*x+e))**(1/2),x)

[Out]

Integral(cos(e + f*x)**2/(sqrt(a*(sin(e + f*x) + 1))*sqrt(-c*(sin(e + f*x) - 1))), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (f x + e\right )^{2}}{\sqrt{a \sin \left (f x + e\right ) + a} \sqrt{-c \sin \left (f x + e\right ) + c}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^2/(a+a*sin(f*x+e))^(1/2)/(c-c*sin(f*x+e))^(1/2),x, algorithm="giac")

[Out]

integrate(cos(f*x + e)^2/(sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c)), x)